package com.xsomnus.open.zookeeper.example;

/**
 * @author @xsomnus666_xiawenye★
 * @since 2019/4/18 0018 17:33
 * 当你发现自己的才华撑不起野心时，就请安静下来学习吧
 */
public class FakeLimitedResource {

    private Integer ticket = 250;

    public void use() throws InterruptedException {
        try {
            System.out.println("-------------火车票还剩余" + (--ticket) + "张!");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
